# encoding: UTF-8

class Site::GonglueController < ApplicationController

  layout 'site'

  def index
    @gonglue = Raid.open_status.paginate(:page => params[:page], :per_page => '25')
    @category = ['游戏攻略']
    @categories = Topic.categories
    @newto = Manual.open_status.newto_all
    @gamedata = Level.open_status.level_guides
    @gamerole = Role.open_status.all
    @gamefeature = Feature.open_status.all
    @gameequip = Sort.open_status.equips_sorts
    set_seo_meta '游戏攻略_新手引导'

  end

  def show
    @archive = Raid.find(params[:id])
    @category = ['游戏攻略']
    @categories = Topic.categories
    @newto = Manual.open_status.newto_all
    @gamedata = Level.open_status.level_guides
    @gamerole = Role.open_status.all
    @gamefeature = Feature.open_status.all
    @gameequip = Sort.open_status.equips_sorts
    set_seo_meta @archive.title+'_游戏攻略_新手引导'
  end

end
